
import {setOrderState} from "./order_setstate";

export function msgBox(dir,val, num,id) {
  dir.$confirm(`${val}, 是否继续?`, "提示", {
    confirmButtonText: "确定",
    cancelButtonText: "取消",
    type: "warning",
  })
    .then(() => {
      dir.$message({
        type: "success",
        message: "操作成功!",
      });
      setOrderState(id,val,num)
    })
    .catch(() => {
      dir.$message({
        type: "info",
        message: "已取消操作",
      });
    });
}